﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;


public class SetPlayerPos : MonoBehaviour
{
    private Renderer myRender;
    public Transform player;
    // Start is called before the first frame update
    void Start()
    {
        myRender = GetComponent<Renderer>();
    }

    // Update is called once per frame
    void Update()
    {
        myRender.material.SetVector("_Affector", player.position);
        //transform.Rotate(Vector3.forward * 25 * Time.deltaTime, Space.Self);
    }
}
